package com.xh.bussiness.course.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xh.core.model.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_course_index")
public class CourseIndex extends SuperEntity {

    /**
     *  课程id
     */
    private String courseId;
    /**
     *  课次名称
     */
    private String courseIndexName;

    /**
     * 课次序号
     */
    private Integer  orderNo;
    /**
     * 章节集合id
     */
    private String chapterIds;

    /**
     *  备课状态 0 未备课  1 备课未提交 2备课已提交 3备课已审核 / 备课已评分
     */
    private Integer lessonStatus;

    /**
     *  最后保存时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    @TableField(fill = FieldFill.UPDATE)
    private Date lastSaveDate;
}
